#include <fstream>

int main()
{
	std::ifstream input("in.txt");
	std::ofstream output("out.txt");
	int n;
	int x = 0;
	int y = 0;
	int len = 0;
	int dx[4] = {1, 0, -1, 0};
	int dy[4] = {0, 1, 0, -1};
	input >> n;
	for (int i = 0; i < n; i++)
	{
		if (!(i % 2))
			len++;
		output << x << " " << y << "\n";
		x += dx[i % 4] * len;	
		y += dy[i % 4] * len;
	}
	return 0;
}